package com.eims.ball.info.fragment;



import com.eims.ball.info.adapter.FanxiZhenRongMainShoushangAdapter;
import com.eims.ball.info.adapter.FanxiZhenRongMainShowAdapter;
import com.eims.sls_app.view.MyListView2;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import bls.juejin.cn.R;



public class FenxiHenrongMaintemFragment extends Fragment implements OnClickListener {
	private Activity activity;
	
	private  MyListView2 listviewZhenRongMainShow;
	private  FanxiZhenRongMainShowAdapter fenxiZhenRongMainShowAdapter;

	
	private  MyListView2 listviewZhenRongMainShoushang ;
	private  FanxiZhenRongMainShoushangAdapter fenxiZhenRongMainShoushangAdapter;
	
	private String weakPlayerA, allPlayerA;

	public FenxiHenrongMaintemFragment() {
		super();
	}



	public static FenxiHenrongMaintemFragment newInstance(String weakPlayerA, String allPlayerA) {



		FenxiHenrongMaintemFragment fragment = new FenxiHenrongMaintemFragment();

		Bundle bundle = new Bundle();
		bundle.putString("weakPlayerA", weakPlayerA);
		bundle.putString("allPlayerA", allPlayerA);
		fragment.setArguments(bundle);
		return fragment;
	}
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.fenxi_zhengrong_team_info, container, false);
		activity = getActivity();

		Bundle args = getArguments();
		if (args != null) {
			this.allPlayerA = args.getString("weakPlayerA");
			this.weakPlayerA= args.getString("allPlayerA");
		}

		init(view);
		return view;
	}

	private void init(View view) {
		// TODO Auto-generated method stub
		listviewZhenRongMainShow=(MyListView2) view.findViewById(R.id.listview_chuzhan_people);
		fenxiZhenRongMainShowAdapter=new FanxiZhenRongMainShowAdapter(activity,allPlayerA);
		listviewZhenRongMainShow.setAdapter(fenxiZhenRongMainShowAdapter);
		
		listviewZhenRongMainShoushang=(MyListView2) view.findViewById(R.id.listview_shangyuan_people);
		fenxiZhenRongMainShoushangAdapter=new FanxiZhenRongMainShoushangAdapter(activity,weakPlayerA);
		listviewZhenRongMainShoushang.setAdapter(fenxiZhenRongMainShoushangAdapter);
	

	}

	

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
//		case R.id.btn_pay_money:
//		
//			break;

		default:
			break;
		}
	}

}
